﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour
{
    
    public static GameManager Instance;
    //阳光数
    private int sunNum;
    public GameObject Prefab_Sun { get; private set; }
    public int SunNum
    {
        get => sunNum;
        set
        {
            sunNum = value;
            UIManager.Instance.UpdateSunNum(sunNum);
        }
    }
    private void Awake()
    {
        Instance = this;
        Prefab_Sun = Resources.Load<GameObject>("Sun");
    }
    // Start is called before the first frame update
    void Start()
    {
        SunNum = 50;
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
